$OpenBSD: patch-grammar_lexer_l,v 1.1 2016/03/15 23:25:51 sthen Exp $
--- grammar/lexer.l.orig	Thu Mar  3 13:18:38 2016
+++ grammar/lexer.l	Thu Mar  3 13:18:52 2016
@@ -97,7 +97,7 @@ extern int yydebug;
 /* somehow, I need these prototype even though the headers are 
  * included. I guess that's some autotools magic I don't understand...
  */
-#if !defined(__FreeBSD__)
+#if !defined(__FreeBSD__) && !defined(__OpenBSD__)
 int fileno(FILE *stream);
 #endif
 
